using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Lesson15 : MonoBehaviour
{
    // Start is called before the first frame update
    IEnumerator Test(int time)
    {
        print(1);
        yield return 1;
        print(2);
        yield return 2;
    }
    void Start()
    {
        IEnumerator i = Test(10);
        i.MoveNext();
        print(i.Current);
        i.MoveNext();
        print(i.Current);
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
